<?php
/**
 * Created by PhpStorm.
 * User: Mak
 * Date: 2016/3/24 0024
 * Time: 17:11
 */

namespace Admin\Model;

use Think\Model;

class TeamInfoModel extends Model
{
    protected $tableName = "teaminfo";


    // 得到所有团队表中的记录
    public function getList()
    {
        $ret = $this->order('teamid asc')->select();
        return $ret;
    }

    // 根据团队编号取得团队信息
    public function getItem($TeamId)
    {
        $condition['teamid'] = $TeamId;
        $ret = $this->where($condition)->find();
        return $ret;
    }
}